#include <iostream>
using namespace std;
int main (){
	int n;
	cin>>n;
	cout<<"dec"<<n<<endl;
	cout<<"oct"<<oct<<n<<endl;
	cout<<"hex"<<hex<<n<<endl;
	return 0;
}
